﻿using BlueMarble.Genesis.Infrastructure.Behaviors;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Windows.Controls;
using System.Windows.Input;

namespace BlueMarble.Genesis.Infrastructure.Test.Behaviors
{
    
    
    /// <summary>
    ///This is a test class for ReturnCommandBehaviorTest and is intended
    ///to contain all ReturnCommandBehaviorTest Unit Tests
    ///</summary>
    [TestClass()]
    public class ReturnCommandBehaviorTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for ReturnCommandBehavior Constructor
        ///</summary>
        [TestMethod()]
        public void ReturnCommandBehaviorConstructorTest()
        {
            TextBox textBox = null; // TODO: Initialize to an appropriate value
            ReturnCommandBehavior target = new ReturnCommandBehavior(textBox);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for GotFocus
        ///</summary>
        [TestMethod()]
        [DeploymentItem("BlueMarble.Genesis.Infrastructure.dll")]
        public void GotFocusTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            ReturnCommandBehavior_Accessor target = new ReturnCommandBehavior_Accessor(param0); // TODO: Initialize to an appropriate value
            target.GotFocus();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for KeyPressed
        ///</summary>
        [TestMethod()]
        [DeploymentItem("BlueMarble.Genesis.Infrastructure.dll")]
        public void KeyPressedTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            ReturnCommandBehavior_Accessor target = new ReturnCommandBehavior_Accessor(param0); // TODO: Initialize to an appropriate value
            Key key = new Key(); // TODO: Initialize to an appropriate value
            target.KeyPressed(key);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for LostFocus
        ///</summary>
        [TestMethod()]
        [DeploymentItem("BlueMarble.Genesis.Infrastructure.dll")]
        public void LostFocusTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            ReturnCommandBehavior_Accessor target = new ReturnCommandBehavior_Accessor(param0); // TODO: Initialize to an appropriate value
            target.LostFocus();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for ResetText
        ///</summary>
        [TestMethod()]
        [DeploymentItem("BlueMarble.Genesis.Infrastructure.dll")]
        public void ResetTextTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            ReturnCommandBehavior_Accessor target = new ReturnCommandBehavior_Accessor(param0); // TODO: Initialize to an appropriate value
            target.ResetText();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for DefaultTextAfterCommandExecution
        ///</summary>
        [TestMethod()]
        public void DefaultTextAfterCommandExecutionTest()
        {
            TextBox textBox = null; // TODO: Initialize to an appropriate value
            ReturnCommandBehavior target = new ReturnCommandBehavior(textBox); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.DefaultTextAfterCommandExecution = expected;
            actual = target.DefaultTextAfterCommandExecution;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
